
// const webpack = require("webpack")
const webpack = require("webpack")

module.exports = {
    mode: "none",
    entry: "./src/main.js",
    output: {
        filename: "bunder.js",
        // path: path.join(__dirname, "dist"),
    },
    optimization: {
        usedExports: true,
        // minimize: true,
        // concatenateModules: true,
        // sideEffects: true, 
    },
    module: {
        rules: [
            {
                test: /\.js$/,
                use: {
                    loader: "babel-loader",
                    options: {
                        presets: [
                            ["@babel/preset-env", {modules: false}]
                        ]
                    }
                }
            },
        ]
    },
    plugins: [
        new webpack.DefinePlugin({
            API_BASE_URL: '"https://api.example.com"'
        })
    ]
}